<div class="am-u-sm-12 widget main-w">
	<ol class="am-breadcrumb">
		<li>
			<a href="{:url('/admin/index')}">首页</a>
		</li>
		<li>
			<a href="{:url('index')}">调度中心</a>
		</li>
		<li>
			<a href="{:url('index')}">查看订单</a>
		</li>
		<li class="am-active">派车</li>
	</ol>
	<form class="layui-form" id="dispatch" data-check="1" action="{:url('')}" data-ajax="1">
		<input type="hidden" name="order_id" value="{$Think.get.order_id}" />
		<div class="am-u-sm-8">
			<div class="am-u-sm-12 cl-p">
				<fieldset>
					<legend>订单信息</legend>
					<div class="am-u-sm-12 cl-p">
						<div class="am-u-sm-12">
							<div class="am-fl">订单号：</div>
							<div class="am-fl order_no">{$item.order_no}</div>
						</div>
						
					</div>
					<div class="am-u-sm-12 cl-p">
						<div class="am-u-sm-12">
							<div class="am-fl">出发地：</div>
							<div class="am-fl from_addr">{$item.from_addr}</div>
						</div>
						<div class="am-u-sm-12">
							<div class="am-fl">目的地：</div>
							<div class="am-fl to_addr">{$item.to_addr}</div>
						</div>
					</div>
				</fieldset>
			</div>
			<div class="am-u-sm-12 cl-p">
				<fieldset>
					<legend>乘客信息</legend>
					<div class="am-u-sm-12 cl-p">
						<div class="am-u-sm-6">
							乘客：<span class="passenger_name">{$item.passenger_name}</span>
						</div>
						<div class="am-u-sm-6">
							手机：<span class="passenger_phone">{$item.passenger_phone}</span>
						</div>
					</div>
					<div class="am-u-sm-12 cl-p">
						<div class="am-u-sm-6">
							<!--<label for="user-name" class="am-u-sm-6 am-form-label am-text-left am-text-truncate"></label>-->
							<div class="am-form-group am-u-sm-12 cl-p" style="margin: 0;">
								<div class="am-u-sm-12 cl-p">
									计划出发时间： {$item.plan_time}
								</div>
							</div>
						</div>
						<div class="am-u-sm-6" style="display: none;">
							<!--<label for="user-name" class="am-u-sm-6 am-form-label am-text-left am-text-truncate"></label>-->
							<div class="am-form-group am-u-sm-12 cl-p" style="margin: 0;">
								<div class="am-u-sm-12 cl-p">
									预计用车结束时间:<input type="text" class="layui-input arriver_time"  value="{$item.arriver_time}" data-am-datepicker="" readonly="">
								</div>
							</div>
						</div>
					</div>
					
				</fieldset>
				<div class="am-u-sm-12 cl-p x-layui">
					<fieldset style="margin-bottom: 0;">
						<legend>车辆信息</legend>
						<div class="am-u-sm-6 cl-p">
							{if $Think.get.chedui}
							<div class="am-u-sm-12">
								<div class="am-u-sm-5 cl-p">车队：</div>
								<div class="am-u-sm-7 driver">{$item.driver}</div>
								<input type="hidden" class="chedui_id" name="chedui_id"/>
								<input type="text" class="am-form-field tpl-form-no-bg chedui" style="line-height: 21px;" data-department="1" data-check='require' data-msg="请选择车队"  placeholder="请选择车队" readonly="" >
							</div>
							{else/}
							<div class="am-u-sm-12">
								<select class="driver_id" id="driver_id" name="driver_id" lay-search="">
									<option>请选择司机</option>
								</select>
								
							</div>
							{/if}
							<!--<div class="am-u-sm-6">
								<div class="am-u-sm-5 cl-p">手机：</div>
								<div class="am-u-sm-7 driver_phone">{$item.driver_phone}</div>
								<input type="hidden" name="driver_phone" />
							</div>-->
						</div>
						<div class="am-u-sm-6 cl-p">
							<div class="am-u-sm-12">
								
								<select  name="car_id" id="car_id" class="car_id" lay-search="">
									<option>请选择车辆</option>
								</select>
							
							</div>

						</div>

					</fieldset>
				</div>
				<div class="am-u-sm-12" style="margin: 20px 0  60px;text-align: center;">
					<input name="order_state" type="hidden" value="5"/>
					<button type="button" class="am-btn am-btn-sm am-btn-secondary am-radius dispatch">确认派车</button>
				</div>
			</div>
		</div>
	</form>
	

</div>
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.2&key={:config('base.mapkey')}&plugin=AMap.Driving"></script>
<script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>